Deterministic Vs. Stochastic Optimization